<!DOCTYPE html>
<html>
<head>
	<title>我的留言</title>
	<meta name="viewport" charset="utf-8" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="/css/pages/user/public.css">
	<link rel="stylesheet" type="text/css" href="/css/pages/user/doctor/message.css">
	<script type="text/javascript" src="/lib/js/jquery-1.11.2.min.js"></script>
	<script type="text/javascript" src="/js/pages/user/message/list.js"></script>
</head>
<body>
	<div class="doctor_desc">
		<div class="message_div">
			<div class="message_title">
				我的留言
			</div>
			<div class="message_list">
				<ul class="message_ul">
					@foreach($messages as $message)
					<li class="message_li">
						<input type="hidden" id="this_message_id" name="" value="{{ $message['id'] }}">
						<div class="headimg_div">
							<img src="{{ $message['wechatUser']['headimgurl'] }}">
						</div>
						<div class="nickname_time_div">
							<div class="nickname">
								我的留言->{{ $message['weChatDoctorInfo' ]['name'] }}{{ $message['weChatDoctorInfo' ]['job_title'] }}
							</div>
							<div class="time">
								{{ $message['created_at'] }}
							</div>
						</div>
						<div class="message_content">
							{{ $message['content' ]}}
						</div>
						<ul class="reply_ul">
							@foreach($message['replys'] as $reply)
							<li class="reply_li">
								<div class="reply_title">
									<div class="doctor_reply">
										{{ $reply['reply_type' ] == 1?$message['weChatDoctorInfo' ]['name']."医生回复":"我的回复" }}
									</div>
									<div class="reply_time">
										{{ $reply['created_at'] }}
									</div>
								</div>
								<div class="reply_content">
									{{ $reply['reply_content' ] }}
								</div>
							</li>
							@endforeach
						</ul>
						<div class="reply_btn reply_this_btn">回复</div>
					</li>
					@endforeach
				</ul>
			</div>
		</div>
		<div class="message_clean"></div>
		<div id="reply_div"  class="message_input" style="display: none;">
			<input type="hidden" id="message_id" name="">
			<input type="text" id="reply_content" name="">
			<div id="reply_btn" class="send_btn">
				回复
			</div>
		</div>
	</div>
</body>
</html>